<?php
/*****************************************
Age Verification Fee for Alcohol
******************************************/
function addAgeFee($fee,$dc,$name,$description) {
		
	
	//If an item in this category exists, they must pay for Age Verification.
	if($_SESSION["gCartInfo"]['discounts'][$dc]['quantity'] > 0) {

		//The criteria was met, add in the fee.
		$_SESSION["gDiscounts"]['AgeFee'] = array('name' => $name, 
											  'description' => $description, 
											  'quantity' => '1', 
											  'price' => $fee,
											  'sku' => 'fee',
											  'weight' => '0');

	} else unset($_SESSION["gDiscounts"][$dc]);
}
?>